package org.springblade.mach.excel;

import lombok.RequiredArgsConstructor;
import org.springblade.core.excel.support.ExcelImporter;
import org.springblade.mach.service.IPurchasedPartsService;

import java.util.List;

/**
 * @author LY
 * @version 1.0
 * @date 2021/4/22 17:10
 */
@RequiredArgsConstructor
public class PurchasedPartsImporter implements ExcelImporter<PurchasedPartsExcel> {
	private final IPurchasedPartsService purchasedPartsService;
	private final Boolean isCovered;
	@Override
	public void save(List<PurchasedPartsExcel> data) {
		purchasedPartsService.importStandardParts(data, isCovered);
	}
}
